<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.search演示</title>
<script type="text/javascript" src="../../1st.js"></script>
</head>
<body>


<script type="text/javascript">
alert([1,3,4,5,6,8,9,24].search(9));

var result = [
	{name:"classA", score:30},
	{name:"classB", score:40},
	{name:"classC", score:50},
	{name:"classD", score:60},
	{name:"classE", score:70},
	{name:"classF", score:80},
	{name:"classG", score:90}
];

var idx = result.search("v.score=55");
F.alert(idx)>-1 && alert(result[idx].name);
idx = result.search("v.score=70");
F.alert(idx)>-1 && alert(result[idx].name);
idx = result.search("75<=v.score<85");
F.alert(idx)>-1 && alert(result[idx].name);
</script>
</body>
</html>